package sicnu.cs.aps.domain.dto;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.*;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

/**
 * @author lucker
 * @date 2022/6/5 16:36
 */
@Data
@With
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class ActivityFormQuestionDto {
    /**
     * 题目ID
     */
    private Long id;
    /**
     * 题目
     */
    private String questionName;
    /**
     * 0-未知;1-填空;2-单选;3-多选;4-判断
     */
    private Integer type;
    /**
     * 选项1|选项2|选项3|...
     */
    private List<String> options;

    /**
     * 空字符串数组
     */
    @Builder.Default
    private List<String> answer = Collections.emptyList();
    /**
     * 提示
     */
    @JsonProperty("hint")
    private String hint;
}
